package bean;

import java.io.Serializable;

/**
 * user
 * @author 
 */
public class User implements Serializable {
    private Integer userid;

    private String username;

    private String userpwd;

    private String usertel;

    private Integer usertouxiangid;

    private Integer usersex;

    private String userjob;

    private String useraddress;

    private String userintroduction;

    private String userlevel;

    private String a;

    private String b;

    private String c;

    private static final long serialVersionUID = 1L;

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUserpwd() {
        return userpwd;
    }

    public void setUserpwd(String userpwd) {
        this.userpwd = userpwd;
    }

    public String getUsertel() {
        return usertel;
    }

    public void setUsertel(String usertel) {
        this.usertel = usertel;
    }

    public Integer getUsertouxiangid() {
        return usertouxiangid;
    }

    public void setUsertouxiangid(Integer usertouxiangid) {
        this.usertouxiangid = usertouxiangid;
    }

    public Integer getUsersex() {
        return usersex;
    }

    public void setUsersex(Integer usersex) {
        this.usersex = usersex;
    }

    public String getUserjob() {
        return userjob;
    }

    public void setUserjob(String userjob) {
        this.userjob = userjob;
    }

    public String getUseraddress() {
        return useraddress;
    }

    public void setUseraddress(String useraddress) {
        this.useraddress = useraddress;
    }

    public String getUserintroduction() {
        return userintroduction;
    }

    public void setUserintroduction(String userintroduction) {
        this.userintroduction = userintroduction;
    }

    public String getUserlevel() {
        return userlevel;
    }

    public void setUserlevel(String userlevel) {
        this.userlevel = userlevel;
    }

    public String getA() {
        return a;
    }

    public void setA(String a) {
        this.a = a;
    }

    public String getB() {
        return b;
    }

    public void setB(String b) {
        this.b = b;
    }

    public String getC() {
        return c;
    }

    public void setC(String c) {
        this.c = c;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        User other = (User) that;
        return (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getUsername() == null ? other.getUsername() == null : this.getUsername().equals(other.getUsername()))
            && (this.getUserpwd() == null ? other.getUserpwd() == null : this.getUserpwd().equals(other.getUserpwd()))
            && (this.getUsertel() == null ? other.getUsertel() == null : this.getUsertel().equals(other.getUsertel()))
            && (this.getUsertouxiangid() == null ? other.getUsertouxiangid() == null : this.getUsertouxiangid().equals(other.getUsertouxiangid()))
            && (this.getUsersex() == null ? other.getUsersex() == null : this.getUsersex().equals(other.getUsersex()))
            && (this.getUserjob() == null ? other.getUserjob() == null : this.getUserjob().equals(other.getUserjob()))
            && (this.getUseraddress() == null ? other.getUseraddress() == null : this.getUseraddress().equals(other.getUseraddress()))
            && (this.getUserintroduction() == null ? other.getUserintroduction() == null : this.getUserintroduction().equals(other.getUserintroduction()))
            && (this.getUserlevel() == null ? other.getUserlevel() == null : this.getUserlevel().equals(other.getUserlevel()))
            && (this.getA() == null ? other.getA() == null : this.getA().equals(other.getA()))
            && (this.getB() == null ? other.getB() == null : this.getB().equals(other.getB()))
            && (this.getC() == null ? other.getC() == null : this.getC().equals(other.getC()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getUsername() == null) ? 0 : getUsername().hashCode());
        result = prime * result + ((getUserpwd() == null) ? 0 : getUserpwd().hashCode());
        result = prime * result + ((getUsertel() == null) ? 0 : getUsertel().hashCode());
        result = prime * result + ((getUsertouxiangid() == null) ? 0 : getUsertouxiangid().hashCode());
        result = prime * result + ((getUsersex() == null) ? 0 : getUsersex().hashCode());
        result = prime * result + ((getUserjob() == null) ? 0 : getUserjob().hashCode());
        result = prime * result + ((getUseraddress() == null) ? 0 : getUseraddress().hashCode());
        result = prime * result + ((getUserintroduction() == null) ? 0 : getUserintroduction().hashCode());
        result = prime * result + ((getUserlevel() == null) ? 0 : getUserlevel().hashCode());
        result = prime * result + ((getA() == null) ? 0 : getA().hashCode());
        result = prime * result + ((getB() == null) ? 0 : getB().hashCode());
        result = prime * result + ((getC() == null) ? 0 : getC().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", userid=").append(userid);
        sb.append(", username=").append(username);
        sb.append(", userpwd=").append(userpwd);
        sb.append(", usertel=").append(usertel);
        sb.append(", usertouxiangid=").append(usertouxiangid);
        sb.append(", usersex=").append(usersex);
        sb.append(", userjob=").append(userjob);
        sb.append(", useraddress=").append(useraddress);
        sb.append(", userintroduction=").append(userintroduction);
        sb.append(", userlevel=").append(userlevel);
        sb.append(", a=").append(a);
        sb.append(", b=").append(b);
        sb.append(", c=").append(c);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

	public User(Integer userid, String username, String userpwd, String usertel, Integer usertouxiangid,
			Integer usersex, String userjob, String useraddress, String userintroduction, String userlevel) {
		super();
		this.userid = userid;
		this.username = username;
		this.userpwd = userpwd;
		this.usertel = usertel;
		this.usertouxiangid = usertouxiangid;
		this.usersex = usersex;
		this.userjob = userjob;
		this.useraddress = useraddress;
		this.userintroduction = userintroduction;
		this.userlevel = userlevel;
	}

	public User(String username, String userpwd, String usertel, Integer usertouxiangid, Integer usersex,
			String userjob, String useraddress, String userintroduction, String userlevel) {
		super();
		this.username = username;
		this.userpwd = userpwd;
		this.usertel = usertel;
		this.usertouxiangid = usertouxiangid;
		this.usersex = usersex;
		this.userjob = userjob;
		this.useraddress = useraddress;
		this.userintroduction = userintroduction;
		this.userlevel = userlevel;
	}
    
}